package com.banana.manager.forest.entity.chemical;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@TableName("device_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class DeviceBean {

    @TableId(value = "device_id",type = IdType.AUTO)
    private Integer deviceId;

    @TableField("device_name")
    private String deviceName;
    @TableField("device_measure")
    private String deviceMeasure;
    @TableField("device_type")
    private String deviceType;
    @TableField("device_detail")
    private String deviceDetail;

    public DeviceBean(String deviceName, String deviceMeasure, String deviceType, String deviceDetail) {
        this.deviceName = deviceName;
        this.deviceMeasure = deviceMeasure;
        this.deviceType = deviceType;
        this.deviceDetail = deviceDetail;
    }
}
